// src/api/user/index.js

import service from './request.js'

export function LoginInfo(query) {
  return service({
    method: 'POST',
    url: '/permission/LoginInfo',
    data: query
  })
}
export function getMenuList(query) {
  return service({
    method: 'get',
    url: '/permission/getMenuList',
    data: query
  })
}

export function getUserList(query) {
  return service({
    method: 'get',
    url: '/permission/UserList',
    data: query
  })
}
export function addUserList(query) {
  return service({
    method: 'post',
    url: '/permission/addUserList',
    data: query
  })
}
export function listUpdate(query) {
  return service({
    method: 'post',
    url: '/permission/listUpdate',
    data: query
  })
}
export function homeList(query) {
  return service({
    method: 'get',
    url: '/permission/homeList',
    data: query
  })
}
export function noticeLists(query) {
  return service({
    method: 'get',
    url: '/permission/noticeLists',
    data: query
  })
}

export function getBaseImage() {
  return service({
    method: 'get',
    url: '/api/admin/app/monitorimage/baseImage'
  })
}

export function login(data) {
  return service({
    method: 'post',
    url: '/api/auth/jwt/appToken',
    data
  })
}
